AHardwareBuffer_isSupported

Test whether the given format and usage flag combination is allocatable.

If this function returns true, it means that a buffer with the given description can be allocated on this implementation, unless resource exhaustion occurs. If this function returns false, it means that the allocation of the given description will never succeed.

The return value of this function may depend on all fields in the description, except stride, which is always ignored. For example, some implementations have implementation-defined limits on texture size and layer count.

\return 1 if the format and usage flag combination is allocatable, 0 otherwise.

extern (C) nothrow @nogc
int
AHardwareBuffer_isSupported

Meta